import request from '@/utils/request'

// 查询车次车辆列表
export function listScheduleDtl(query) {
  return request({
    url: '/tms/scheduleDtl/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/tms/scheduleDtl/initBean',
        method: 'post'
    })
}

// 查询车次车辆详细
export function getScheduleDtl(id) {
  return request({
    url: '/tms/scheduleDtl/' + id,
    method: 'get'
  })
}

// 新增车次车辆
export function addScheduleDtl(data) {
  return request({
    url: '/tms/scheduleDtl',
    method: 'post',
    data: data
  })
}

// 修改车次车辆
export function updateScheduleDtl(data) {
  return request({
    url: '/tms/scheduleDtl',
    method: 'put',
    data: data
  })
}

// 删除车次车辆
export function delScheduleDtl(id) {
  return request({
    url: '/tms/scheduleDtl/' + id,
    method: 'delete'
  })
}
